package com.edu.framework.websocket.handler;

import com.edu.framework.websocket.message.title.TitleRequest;
import com.edu.system.service.ITClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.socket.WebSocketSession;

@Component
public class TitleRequestHandler implements IHandler<TitleRequest> {

//    @Autowired
    private ITClassService classService;

    @Override
    public void execute(WebSocketSession session, TitleRequest message) {
        if (message == null) {
            return;
        }

//        try {
//            WebSocketHolder.send(session, response);
//        } catch (IOException e) {
//            throw new RuntimeException(e);
//        }
    }

    @Override
    public String getType() {
        return TitleRequest.TYPE;
    }
}
